<template name="basics">
	<view>
		<scroll-view scroll-y class="page">
			<image src='/static/appimg/tool_top.png'  class="response"></image>
			<view class="nav-list">
				<navigator hover-class="none" :url="'/pages/tool/' + item.name" class="nav-li" navigateTo :class="'bg-'+item.color"
				 :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]" v-for="(item,index) in elements" :key="index">
					<view class="nav-title">{{item.title}}</view>
					<view class="nav-name">{{item.name}}</view>
					<text :class="'cuIcon-' + item.cuIcon"></text>
				</navigator>
			</view>
			<view class="cu-tabbar-height"></view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		name: "basics",
		data() {
			return {
				elements: [{
						title: '资源库',
						name: 'resource',
						color: 'cyan',
						cuIcon: 'newsfill'
					},
					{
						title: '手机壁纸',
						name: 'wallpaper',
						color: 'purple',
						cuIcon: 'font'
					},
					{
						title: '电脑壁纸',
						name: 'computer',
						color: 'pink',
						cuIcon: 'btn'
					},
					{
						title: '精美头像',
						name: 'avatar',
						color: 'brown',
						cuIcon: 'tagfill'
					},
					{
						title: '网盘视频',
						name: 'video',
						color: 'blue',
						cuIcon: 'colorlens'
					},
					{
						title: '水印去除',
						name: 'shuiyin',
						color: 'red',
						cuIcon: 'footprint'
					},
					{
						title: '电脑软件 ',
						name: 'software',
						color: 'mauve',
						cuIcon: 'taxi'
					},
					{
						title: '手机软件',
						name: 'phone',
						color: 'orange',
						cuIcon: 'mobilefill'
					},
					{
						title: '敬请期待',
						name: 'expect',
						color: 'olive',
						cuIcon: 'copy'
					},
					{
						title: '积分兑换',
						name: 'exchange',
						color: 'green',
						cuIcon: 'vip'
					}
				],
			};
		},
		onShow() {
			console.log("success")
		}
	}
</script>

<style>
	.page {
		height: 100vh;
	}
	page {
		background-color: white;
	}
	
</style>
